package com.ljm.travels.dao;

import com.ljm.travels.domain.Place;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PlaceDAO extends BaseDAO<Place, Integer> {

    List<Place> findByProvinceIdPage(@Param("start") Integer start, @Param("rows") Integer rows, @Param("provinceId") Integer provinceId);

    Integer findByProvinceIdCounts(Integer provinceId);
}
